/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package xlsBeans;

import com.smartxls.WorkBook;
import java.util.logging.Level;
import java.util.logging.Logger;


/**
 *
 * @author Lucas
 */
public final class InteractionXLS {
    private String interactiontype;
    private String interactioninformation;

    public InteractionXLS(WorkBook w, int l) {
        this.setInteraction(w, l);
    }
    public InteractionXLS(){
        this.interactioninformation = "";
        this.interactiontype = "";
    }
    public void setInteraction(WorkBook w, int l){
        try {
            this.interactioninformation = w.getText(l, 109);
            this.interactiontype = w.getText(l, 108);
        } catch (Exception ex) {
            Logger.getLogger(InteractionXLS.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    public boolean isSet(){
        if(this.interactioninformation.equals("") && this.interactiontype.equals(""))
            return  false;
        else return true;
    }

    public String getInteractioninformation() {
        return interactioninformation;
    }

    public void setInteractioninformation(String interactioninformation) {
        this.interactioninformation = interactioninformation;
    }

    public String getInteractiontype() {
        return interactiontype;
    }

    public void setInteractiontype(String interactiontype) {
        this.interactiontype = interactiontype;
    }

}
